<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<DocuServe.Core.Entities.Person>" %>
<%@ Import Namespace="MyCode.Web.Mvc" %>
<%= Html.ValidationSummary("Create was unsuccessful. Please correct the errors and try again.") %>
<% using (Html.BeginForm())
   {%>
<fieldset>
    <legend>Fields</legend>
    <table border="0" cellpadding="2" cellspacing="0">
        <tr>
            <td>
                <p>
                    <label for="FirstName">
                        First Name:</label>
                    <%= new MvcTextBox(Html, "FirstName") %>
                    <%= Html.ValidationMessage("FirstName", "*") %>
                </p>
            </td>
            <td>
                <p>
                    <label for="MiddleName">
                        Middle Name:</label>
                    <%= new MvcTextBox(Html, "MiddleName")%>
                    <%= Html.ValidationMessage("MiddleName", "*") %>
                </p>
            </td>
            <td>
                <p>
                    <label for="LastName">
                        Last Name:</label>
                    <%= new MvcTextBox(Html, "LastName")%>
                    <%= Html.ValidationMessage("LastName", "*") %>
                </p>
            </td>
        </tr>
    </table>
    <p>
        <label for="Address">
            Address:</label>
        <%= Html.TextBox("Address") %>
        <%= Html.ValidationMessage("Address", "*") %>
    </p>
    <p>
        <label for="BirthDate">
            BirthDate:</label>
        <%= Html.TextBox("BirthDate") %>
        <%= Html.ValidationMessage("BirthDate", "*") %>
    </p>
    <p>
        <label for="ContactPerson">
            ContactPerson:</label>
        <%= Html.TextBox("ContactPerson") %>
        <%= Html.ValidationMessage("ContactPerson", "*") %>
    </p>
    <p>
        <label for="ContactPersonNumber">
            ContactPersonNumber:</label>
        <%= Html.TextBox("ContactPersonNumber") %>
        <%= Html.ValidationMessage("ContactPersonNumber", "*") %>
    </p>
    <p>
        <label for="Email">
            Email:</label>
        <%= Html.TextBox("Email") %>
        <%= Html.ValidationMessage("Email", "*") %>
    </p>
    <p>
        <label for="EmploymentDate">
            EmploymentDate:</label>
        <%= Html.TextBox("EmploymentDate") %>
        <%= Html.ValidationMessage("EmploymentDate", "*") %>
    </p>
    <p>
        <label for="HomeNumber">
            HomeNumber:</label>
        <%= Html.TextBox("HomeNumber") %>
        <%= Html.ValidationMessage("HomeNumber", "*") %>
    </p>
    <p>
        <label for="MobileNumber">
            MobileNumber:</label>
        <%= Html.TextBox("MobileNumber") %>
        <%= Html.ValidationMessage("MobileNumber", "*") %>
    </p>
</fieldset>
<% } %>
